package com.example.springboot.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 点赞表
 * </p>
 *
 * @author jiang
 * @since 2025-04-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("thumbs")
@Schema(name = "ThumbsEntity", description = "点赞表")
public class ThumbsEntity extends Model<ThumbsEntity> {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "咨询ID")
    @TableField("news_id")
    private Integer newsId;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private Integer userId;

    @Schema(description = "点赞时间")
    @TableField("current")
    private Date current;

    public static final String ID = "id";

    public static final String NEWS_ID = "news_id";

    public static final String USER_ID = "user_id";

    public static final String CURRENT = "current";

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
